﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace HdipCricketClub.Models
{
    [MetadataType(typeof(CareerStatisticsMetaData))]
    public partial class CareerStatistics
    {
        /*public double BattingAverage()
        {
            return batting_Runs / (innings - not_out); 
        }*/


        /*public BowlingAverage()
          {
             return bowling_runs / wickets;
          }*/  


        /*public RunsPerOver()
          {
            return bowling_runs / overs;   
          }*/
    }

    public class CareerStatisticsMetaData
    {
        [Display (Name = "Matches:")]
        public object matches;

        [Display(Name = "Innings:")]
        public object innings;

        [Display(Name = "Not Out:")]
        public object not_out;

        [Display(Name = "Runs:")]
        public object batting_runs;

        [Display(Name = "Overs:")]
        public object overs;

        [Display(Name = "Maidens:")]
        public object maidens;

        [Display(Name = "Runs:")]
        public object bowling_runs;

        [Display(Name = "Wickets:")]
        public object wickets;

    }



}